<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>电话预订</title>
    <!-- <link rel="stylesheet" type="text/css" href="../../../css/api.css" /> -->
    <link rel="stylesheet" type="text/css" href="../../../css/style.css" />
    <link rel="stylesheet" href="../../../css/aui.css">

    <style>
      body{
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
      }
      .order{
        width: 100%;
        height: 100%;
      }
      .shade{
        width: 100%;
        height: 100%;
        padding-top: 7rem
      }
      .box{
        margin: auto;
        width: 80%;
        height: 18rem;
        background-color: #fff;
        padding-top: 3rem;
        border-radius: 5px
      }
      .box input{
        display: block;
        margin: 0 auto;
        background-color: rgb(247, 248, 250);
        border: none;
        width: 70%;
        height: 2rem;
        line-height: 2rem;
        border-radius: 1rem;
        font-size: 0.9rem;
        padding-left: 1rem;
      }
      .order .box input:nth-of-type(1){
        margin-bottom: 1rem;
      }
      .order .box input:nth-of-type(2){
        margin-bottom: 1.8rem;
      }
      .order .box p{
        margin: 0 auto;;
        width: 80%;
        font-size: 0.6rem;
        color: rgb(165, 165, 165);
      }
      .order .box button{
        display: block;
        margin: 1.2rem auto;
        width: 10rem;
        height: 2.5rem;
        border: none;
        border-radius: 2.5rem;
        background-color: rgb(215, 32, 45);
        color: rgb(251, 194, 205);
        font-size: 0.9rem;
        line-height: 2.5rem;
      }
    </style>
</head>

<body>
  <div class="order">
    <div class="shade" onclick="api.closeFrame()">
      <div class="box">
              <input type="text" placeholder="姓名">
              <input type="text" placeholder="手机号">
              <p>为确保我们能及时联系您，请认证填写真实有效的信息。</p>
              <div class="sibmit">
                  <button id="submit">提交</button>
              </div>
      </div>
    </div>
  </div>
</body>
<script type="text/javascript" src="../../../lib/zepto.js"></script>
<script type="text/javascript" src="../../../script/api.js"></script>
<script>
  $(".box").click(function (e) {
    e.stopPropagation();
  })
  $("#submit").click(function () {
    $("body").css("display","none")
    api.openFrame({
        name: 'success',
        url: './success.html',
        rect: {
            x: 0,
            y: 0,
            w: 'auto',
            h: 'auto'
        },
    });
    api.closeFrame({
      name:'order'
    })
  })

</script>

</html>
